  <%@ page import="psychoproject.Assignment" %>
  <!DOCTYPE html>
  <html>
    <head>
      <meta name="layout" content="main">
      <g:set var="entityName" value="${message(code: 'assignment.label', default: 'Assignment')}" />
      <title><g:message code="default.show.label" args="[entityName]" /></title>
    </head>
  
    <body>
    <a href="#show-assignment" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
    <div class="nav" role="navigation">
      <ul>
        <li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
        <li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
        <li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
      </ul>
    </div>
    <div id="show-assignment" class="content scaffold-show" role="main">
      <h1><g:message code="default.show.label" args="[entityName]" /></h1>
      <g:if test="${flash.message}">
        <div class="message" role="status">${flash.message}</div>
      </g:if>
      <ol class="property-list assignment">

        <g:if test="${assignmentInstance?.question}">
          <li class="fieldcontain">
            <span id="question-label" class="property-label"><g:message code="assignment.question.label" default="Question" /></span>

            <span class="property-value" aria-labelledby="question-label"><g:link controller="question" action="show" id="${assignmentInstance?.question?.id}">${assignmentInstance?.question?.encodeAsHTML()}</g:link></span>

          </li>
        </g:if>

        <g:if test="${assignmentInstance?.test}">
          <li class="fieldcontain">
            <span id="test-label" class="property-label"><g:message code="assignment.test.label" default="Test" /></span>

            <span class="property-value" aria-labelledby="test-label"><g:link controller="test" action="show" id="${assignmentInstance?.test?.id}">${assignmentInstance?.test?.encodeAsHTML()}</g:link></span>

          </li>
        </g:if>

      </ol>
      <g:form>
        <fieldset class="buttons">
          <g:hiddenField name="id" value="${assignmentInstance?.id}" />
          <g:link class="edit" action="edit" id="${assignmentInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
          <g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
        </fieldset>
      </g:form>
    </div>
  </body>
  </html>